﻿using System.Collections;
using UnityEngine;

public class PlanScript : MonoBehaviour {
	Material mat;
	float y;
	// Use this for initialization
	void Start () {
		mat = GetComponent<MeshRenderer> ().material;	
	}

	// Update is called once per frame
	void Update () {
		y -= Time.deltaTime * 0.3f;
		mat.mainTextureOffset  = new Vector2 (0, y);
	}
}

